
	<?php $form = $this->beginWidget('CActiveForm', array(
		'id'=>'login-form',
		//'enableClientValidation'=>true,
		'clientOptions'=>array(
			'validateOnSubmit'=>true,
		),
		'action' => Yii::app()->createUrl("/site/login" ),
		//'enableAjaxValidation' => true,
	)); ?>
	<div class="title">Вход</div>
	<?php echo $form->errorSummary($model); ?>
	<table>
		<tr>
			<td>
				<label><?php echo $form->labelEx($model,'email'); ?></label><br/>
				<?php echo $form->textField($model,'email'); ?>
			</td>
		</tr>
		<tr>
			<td>
				<label><?php echo $form->labelEx($model,'password'); ?></label>
				<span><a href="#">Восстановить пароль</a></span>
				<br/>
				<?php echo $form->passwordField($model,'password'); ?>
			</td>
		</tr>
		<tr><td>
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'rememberMe'); ?>
		</td></tr>
		<tr>
			<td><br/><?php /*echo CHtml::submitButton('Войти')*/echo CHtml::submitButton('Войти' 
					//Yii::app()->createUrl("/site/login")
					//array('success' => 'js: function(data) {$("#login").html(data);}')
			); ?></td>
		</tr>
	</table>
	<?php $this->endWidget(); ?>
	<a class="close-reveal-modal">Close</a>

